<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
将代码封装成Java对象，加瓦豆方法。
<jsp:useBean id="Wendy"
class="xjj.User">
<jsp:setProperty name="Wendy" property="*"/>
</jsp:useBean>

<jsp:getProperty property="username" name="Wendy"/>
<jsp:getProperty property="password" name="Wendy"/>
</body>
</html>